//
//  RadioSecondTableViewCell.m
//  A_program
//
//  Created by BayMax on 15/5/25.
//  Copyright (c) 2015年 BayMax. All rights reserved.
//

#import "RadioSecondTableViewCell.h"

@implementation RadioSecondTableViewCell

- (void)dealloc
{
    [super dealloc];
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        self.secondLabelName = [[UILabel alloc]initWithFrame:CGRectMake(120, 0, 200, 60)];
        //        [self.secondLabelName setBackgroundColor:[UIColor orangeColor]];
        self.secondLabelName.numberOfLines = 0;
        self.secondLabelName.font = [UIFont systemFontOfSize:14];
        [self.contentView addSubview:self.secondLabelName];
        [self.secondLabelName release];
        
        self.secondLabelAuthor = [[UILabel alloc]initWithFrame:CGRectMake(120, 60, 200, 20)];
        self.secondLabelAuthor.font = [UIFont systemFontOfSize:12];
        //        [self.secondLabelAuthor setBackgroundColor:[UIColor greenColor]];
        [self.contentView addSubview:self.secondLabelAuthor];
        [self.secondLabelAuthor release];
        
        
        self.secondLabelCount = [[UILabel alloc]initWithFrame:CGRectMake(120, 80, 50, 20)];
        self.secondLabelCount.font = [UIFont systemFontOfSize:12];
        //        [self.secondLabelCount setBackgroundColor:[UIColor grayColor]];
        [self.contentView addSubview:self.secondLabelCount];
        [self.secondLabelCount release];
        
        self.secondLabelZan = [[UILabel alloc]initWithFrame:CGRectMake(190, 80, 50, 20)];
        self.secondLabelZan.font = [UIFont systemFontOfSize:12];
        //        [self.secondLabelZan setBackgroundColor:[UIColor purpleColor]];
        [self.contentView addSubview:self.secondLabelZan];
        [self.secondLabelZan release];
        
        UIImageView *imageView = [[UIImageView alloc]initWithFrame:CGRectMake(170, 80, 20, 20)];
        [imageView setImage:[UIImage imageNamed:@"heart.png"]];
        [self.contentView addSubview:imageView];
        [imageView release];
        
        self.secondImageView = [[UIImageView alloc]initWithFrame:CGRectMake(10, 15, 60, 60)];
        //        [self.secondImageView setBackgroundColor:[UIColor purpleColor]];
        [self.contentView addSubview:self.secondImageView];
        [self.secondImageView release];
    }
    return self;
}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    
    // Configure the view for the selected state
}

@end
